<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/src/css/public.css">
</head>

<body>
    <div style="padding: 10px;">
        <form class="layui-form" action="" lay-filter="layui-form-Table">
            <ul class="layui-form layui-form-pane formUl" style="margin: 15px;">
                <li class="layui-form-item">
                    <label class="layui-form-label">部门名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptname" lay-verify="required" autocomplete="off" placeholder="请输入部门名称" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">部门代码</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptjcdm" autocomplete="off" placeholder="请输入部门代码" class="layui-input">
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">父ID:树形结构</label>
                    <div class="layui-input-block">
                        <input type="text" name="parentpath" lay-verify="required" autocomplete="off" placeholder="请输入父ID:树形结构" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">树形结构深度</label>
                    <div class="layui-input-block">
                        <input type="text" name="depth" lay-verify="required" autocomplete="off" placeholder="请输入树形结构深度" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">部门描述</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptmemo" lay-verify="required" autocomplete="off" placeholder="请输入部门描述" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">部门所在行政区划号</label>
                    <div class="layui-input-block">
                        <input type="text" name="areanumber" lay-verify="required" autocomplete="off" placeholder="请输入部门所在行政区划号" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">地址</label>
                    <div class="layui-input-block">
                        <input type="text" name="dizhi" lay-verify="required" autocomplete="off" placeholder="请输入地址" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">联系人</label>
                    <div class="layui-input-block">
                        <input type="text" name="lianxir" lay-verify="required" autocomplete="off" placeholder="请输入联系人" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">维度</label>
                    <div class="layui-input-block">
                        <input type="text" name="x" lay-verify="required" autocomplete="off" placeholder="请输入维度" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">经度</label>
                    <div class="layui-input-block">
                        <input type="text" name="y" lay-verify="required" autocomplete="off" placeholder="请输入经度" class="layui-input" disabled>
                    </div>
                </li>
            </ul>

        </form>
    </div>
    <script src="/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/src/'
        }).use('index', function() {
            var admin = layui.admin,
                main = layui.main,
                form = layui.form,
                table = parent.table;

            //加载表单内容
            admin.req({
                url: 'system/dept/Edit',
                type: 'get',
                data: {
                    id: main.getPageParams('id')
                },
                done: function(res) {
                    if (res.successful) {
                        form.val("layui-form-Table", {
                            "deptid": res.data.deptid,
                            "deptname": res.data.deptname,
                            "parentid": res.data.parentid,
                            "parentpath": res.data.parentpath,
                            "depth": res.data.depth,
                            "deptmemo": res.data.deptmemo,
                            "orderid": res.data.orderid,
                            "areanumber": res.data.areanumber,
                            "dizhi": res.data.dizhi,
                            "lianxir": res.data.lianxir,
                            "lianxidh": res.data.lianxidh,
                            "x": res.data.x,
                            "y": res.data.y
                        });
                    }
                }
            });
        });
    </script>
</body>

</html>